package com.stlm2.controller.pay;

import com.github.wxpay.sdk.WXPayConfig;
import java.io.*;
/**
 * Author：fuchunyu
 * Date：2017/7/13
 * Description：
 */
public class WechatConfig implements WXPayConfig {

    /*private byte[] certData;

    public WechatConfig() throws Exception {
        String certPath = "/path/to/apiclient_cert.p12";
        File file = new File(certPath);
        InputStream certStream = new FileInputStream(file);
        this.certData = new byte[(int) file.length()];
        certStream.read(this.certData);
        certStream.close();
    }*/

    public String getAppID() {
        return "wxcae7693294154eb4";
    }

    public String getMchID() {
        return "1490491772";
    }

    public String getKey() {
        return "4218F95CAEF9BC9B04D136ADA04F94EF";
    }

    public InputStream getCertStream() {
        return null;
    }

    /*public InputStream getCertStream() {
        ByteArrayInputStream certBis = new ByteArrayInputStream(this.certData);
        return certBis;
    }*/

    public int getHttpConnectTimeoutMs() {
        return 8000;
    }

    public int getHttpReadTimeoutMs() {
        return 10000;
    }


    public String getAppSecret(){return "1bad93acbef98bcec9c564badb4c2e32";}
}
